* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100%;
}

.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.left-panel {
    width: 300px;
    padding: 0 10px;
    background-color: #e0e0e0;
    border-right: 1px solid #ccc;
}

.right-panel {
    width: 200px;
    padding: 0 10px;
    background-color: #e0e0e0;
    border-left: 1px solid #ccc;
}

.middle-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #f5f5f5;
    overflow: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.btn {
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #45a049;
}

.btn-clear {
    background-color: #f44336;
}

.btn-clear:hover {
    background-color: #d32f2f;
}

.btn-primary {
    background-color: #2196F3;
    padding: 10px 20px;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #0b7dda;
}

.image-grid {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

.image-item {
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.image-item:hover {
    border-color: #4CAF50;
}

.image-item.selected {
    border-color: #2196F3;
}

.canvas-header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #999;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1;
}

#editor-canvas {
    background-color: white;
    cursor: default;
}

.sticker-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: blue;
    border: 1px solid white;
    border-radius: 50%;
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}
